package com.wiretap.service;

import java.util.List;

import com.wiretap.po.Administrator;

/**
 * 
 * @author zzy
 * @category 管理员操作业务逻辑接口
 */
public interface AdminService {
	/**
	 * 管理员登陆
	 * 
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public Administrator login(String username, String password) throws Exception;

	/**
	 * 添加管理员信息
	 * 
	 * @param administrator
	 * @throws Exception
	 */
	public boolean addAdministator(Administrator administrator) throws Exception;

	/**
	 * 修改密码
	 * 
	 * @param administrator
	 * @throws Exception
	 */
	public void changePassword(Administrator administrator) throws Exception;

	public List<Administrator> getAllAdministrator() throws Exception;

	Administrator getAdministratorbyName(String username) throws Exception;
	
	public void deleteAdmin(String id) throws Exception;
}
